home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
All Night Long
/
All Night Long.iso
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1994-06-01
|
4KB
|
95 lines
@ECHO OFF
ECHO OFF
CLS
IF (%1)==() GOTO ERROR
IF (%2)==() GOTO ERROR
IF NOT EXIST %1\ASKBAT.EXE GOTO ERROR
ECHO
ECHO ┌──────────────────────────────────────────────────────────┐
ECHO │ ALL NIGHT LONG │
ECHO ├──────────────────────────────────────────────────────────┤
ECHO │ │
ECHO │ You have chosen a CD-ROM drive of %1 and a target │
ECHO │ drive of %2. (If this is not correct please press │
ECHO │ 'n' in answer of the question below.) │
ECHO │ │
ECHO │ CD-ROM Drive: %1 Install To: %2 │
ECHO │ │
ECHO │ EXAMPLE - INSTALL D: C: │
ECHO │ ( make sure your type the : ) │
ECHO │ │
ECHO │ The Example installs from a CD-ROM drive of D: to │
ECHO │ a local C: drive. │
ECHO │ │
ECHO │ A sub-directory named ALLNIGHT will be created on │
ECHO │ drive %2. The All Night Long Program files will │
ECHO │ then be extracted to the ALLNIGHT sub-directory. │
ECHO │ │
ECHO └──────────────────────────────────────────────────────────┘
ECHO.
%1\ASKBAT yes 1 no 2 /h /p " Is this information correct? "
if errorlevel 2 goto END
echo
echo Installing Program...
MD %2\ALLNIGHT
COPY %1\PROGRAM %2\ALLNIGHT > nul
echo D %1 >> %2\ALLNIGHT\THUMB.CFG
GOTO DONE
:dfull
CLS
ECHO.
ECHO.
ECHO
ECHO
ECHO ┌──────────────────────────────────────────────────────────┐
ECHO │ !!! AN ERROR HAS OCCURRED DURING INSTALLATION !!! │
ECHO. │ │
ECHO │ Please make sure that you have specified a Hard Disk │
ECHO │ as the destination and there is at least 150,000 bytes │
ECHO │ free space. │
ECHO └──────────────────────────────────────────────────────────┘
ECHO.
ECHO.
GOTO END
:ERROR
ECHO.
ECHO.
ECHO.
ECHO.
ECHO
ECHO
ECHO ┌──────────────────────────────────────────────────────────┐
ECHO. │ INCORRECT USAGE! │
ECHO │ │
ECHO │ EXAMPLE: ┌───── CD-ROM DRIVE: │
ECHO │ INSTALL D: C: │
ECHO │ └───DESTINATION DRIVE: │
ECHO │ │
ECHO │ ( make sure you type the : ) │
ECHO └──────────────────────────────────────────────────────────┘
ECHO.
ECHO.
ECHO.
ECHO.
GOTO END
:Done
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO ┌──────────────────────────────────────────────┐
ECHO │ Installation complete! │
ECHO │ │
ECHO │ Type ALLNIGHT and press [Enter] to start │
ECHO └──────────────────────────────────────────────┘
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
%2:
cd \ALLNIGHT
:END